home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / idl / bonobo-activation-2.0 / Bonobo_ObjectDirectory.idl < prev    next >
Text File  |  2006-01-09  |  4KB  |  111 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
  2. /*
  3.  *  Bonobo_ObjectDirectory.idl:
  4.  *
  5.  *  Copyright (C) 1999, 2000 Red Hat, Inc.
  6.  *  Copyright (C) 1999, 2000 Eazel, Inc.
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU General Public License as
  10.  *  published by the Free Software Foundation; either version 2 of the
  11.  *  License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this library; if not, write to the Free Software
  20.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Authors: Elliot Lee <sopwith@redhat.com>,
  23.  *           Maciej Stachowiak <mjs@noisehavoc.org>
  24.  *
  25.  */
  26.  
  27. #ifndef __BONOBO_OBJECT_DIRECTORY_IDL__
  28. #define __BONOBO_OBJECT_DIRECTORY_IDL__
  29.  
  30. #ifndef __Bonobo_ObjectDirectory_COMPILATION
  31. #ifdef  __ORBIT_IDL__
  32. %{
  33. #pragma include_defs bonobo-activation/Bonobo_ObjectDirectory.h
  34. %}
  35. #pragma inhibit push
  36. #endif
  37. #endif
  38.  
  39. #include <Bonobo_Unknown.idl>
  40. #include <Bonobo_Activation_types.idl>
  41.  
  42. /* ActivationContext needs a forward declaration of ObjectDirectory */
  43. module Bonobo {
  44.         interface ObjectDirectory;
  45. };
  46.  
  47. #include <Bonobo_ActivationContext.idl>
  48.  
  49. module Bonobo {
  50.         typedef long long CacheTime;
  51.  
  52.         union ServerInfoListCache switch (boolean) {
  53.         case TRUE:
  54.                 ServerInfoList server_list;
  55.         };
  56.  
  57.         union ServerStateCache switch (boolean) {
  58.         case TRUE:
  59.                 sequence<ImplementationID> active_servers;
  60.         };
  61.  
  62.         interface ObjectDirectory : Bonobo :: Unknown {
  63.                 exception NotRegistered {};
  64.  
  65.                 ServerInfoListCache get_servers        (in CacheTime only_if_newer);
  66.                 ServerStateCache    get_active_servers (in CacheTime only_if_newer);
  67.                 
  68.                 readonly attribute string username, hostname;
  69.  
  70.                 Object activate (in ImplementationID              iid,
  71.                                  in ActivationContext             ac,
  72.                                  in Bonobo::ActivationEnvironment environment,
  73.                                  in ActivationFlags               flags,
  74.                                  in ActivationClient              client)
  75.                         context ("username", "hostname");
  76.  
  77.                 RegistrationResult register_new (in  ImplementationID              iid,
  78.                                                  in  Bonobo::ActivationEnvironment environment,
  79.                                                  in  Object                        obj,
  80.                          in  RegistrationFlags             flags,
  81.                                                  in  string                        description,
  82.                                                  out Object                        existing);
  83.                 RegistrationResult register_new_full (in  ImplementationID              iid,
  84.                                                       in  Bonobo::ActivationEnvironment environment,
  85.                                                       in  Object                        obj,
  86.                                                       in  RegistrationFlags             flags,
  87.                                                       in  string                        description,
  88.                                                       out Object                        existing,
  89.                                                       in ActivationClient               client);
  90.                 void               unregister   (in ImplementationID              iid,
  91.                                                  in Object                        obj)
  92.                         raises (NotRegistered);
  93.  
  94.                 DynamicPathLoadResult dynamic_add_path (in string add_path);
  95.                 DynamicPathLoadResult dynamic_remove_path (in string remove_path);
  96.  
  97.                 void addClientEnv (in ActivationClient client,
  98.                                    in StringList       env);
  99.         };
  100.  
  101. };
  102.  
  103.  
  104. #ifndef __Bonobo_ObjectDirectory_COMPILATION
  105. #ifdef  __ORBIT_IDL__
  106. #pragma inhibit pop
  107. #endif
  108. #endif
  109.  
  110. #endif
  111.